LEADTOOLS Medical (Leadtools.Dicom assembly)
LEAD Technologies, Inc

GetValue<T>(DicomElement,T,GetValueDelegate) Method








specifies the type of the value to return
an item in the data set
a value of type T that is returned if the actual value cannot be retrieved.
an optional delegate that converts that extracted data to any type
Returns the value of a DICOM element .NET support
Syntax
public T GetValue<T>( 
   DicomElement element,
   T defaultValue,
   GetValueDelegate getValueDelegate
)
'Declaration
 
Public Overloads Function GetValue(Of T)( _
   ByVal element As DicomElement, _
   ByVal defaultValue As T, _
   ByVal getValueDelegate As GetValueDelegate _
) As T
'Usage
 
Dim instance As DicomDataSet
Dim element As DicomElement
Dim defaultValue As T
Dim getValueDelegate As GetValueDelegate
Dim value As T
 
value = instance.GetValue(Of T)(element, defaultValue, getValueDelegate)
public T GetValue<T>( 
   DicomElement element,
   T defaultValue,
   GetValueDelegate getValueDelegate
)
ObjectiveC Syntax
 function Leadtools.Dicom.DicomDataSet.GetValue``1(DicomElement,``0,GetValueDelegate)( 
   element ,
   defaultValue ,
   getValueDelegate 
)
public:
T^ GetValuegeneric<typename T>
( 
   DicomElement^ element,
   T^ defaultValue,
   GetValueDelegate^ getValueDelegate
) 

Parameters

element
an item in the data set
defaultValue
a value of type T that is returned if the actual value cannot be retrieved.
getValueDelegate
an optional delegate that converts that extracted data to any type

Type Parameters

T
specifies the type of the value to return

Return Value

a value of type T that is the value of the DICOM element
Remarks
For information on this method, see GetValue.
Example
For an example, refer to GetValueDelegate.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DicomDataSet Class
DicomDataSet Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features